import request from '@/utils/request'

export function getRouterList (data) {
  return request({
    url: '/api/setting/route/index',
    method: 'post',
    data
  })
}

export function getRouteCatalogs (data) {
  return request({
    url: '/api/setting/route-catalogs/index',
    method: 'post',
    data
  })
}

export function renovateRoute (data) {
  return request({
    url: '/api/setting/route/renovateRoute',
    method: 'post',
    data
  })
}

export function ceaterRouteCatalogs (data) {
  return request({
    url: '/api/setting/route-catalogs/store',
    method: 'post',
    data
  })
}

export function deleteRouteCatalogs (data) {
  return request({
    url: '/api/setting/route-catalogs/delete',
    method: 'post',
    data
  })
}

export function getAllRouteList (data) {
  return request({
    url: '/api/setting/route/list',
    method: 'post',
    data
  })
}

export function getRoleRoutesShow (data) {
  return request({
    url: '/api/setting/route-catalogs/show',
    method: 'post',
    data
  })
}

export function updateRouteCatalogs (data) {
  return request({
    url: '/api/setting/route-catalogs/update',
    method: 'post',
    data
  })
}

export function getRenovateRoute (data) {
  return request({
    url: '/api/setting/route/renovateRoute',
    method: 'post',
    data
  })
}

export function getDistributionRoutes (data) {
  return request({
    url: '/api/setting/route-catalogs/distribution-routes',
    method: 'post',
    data
  })
}

export function removeDistributionRoutes (data) {
  return request({
    url: '/api/setting/route-catalogs/remove',
    method: 'post',
    data
  })
}
